package com.jiuyi.service;

import com.jiuyi.common.R;
import com.jiuyi.entity.Employee;
import com.jiuyi.vo.AdminAddEmployeeVo;
import com.jiuyi.vo.AdminSelectEmployeeByIdVo;
import com.jiuyi.vo.AdminSelectEmployeeVo;

import javax.servlet.http.HttpServletRequest;

/**
 * DATA: 2022/10/17
 * Author: 晨夕
 */
public interface EmployeeService {
    //登录
    R<Employee> login(HttpServletRequest request, Employee employee);
    //登出
    R<Employee> logout(HttpServletRequest request);
    //添加
    R<AdminAddEmployeeVo> addEmployee(HttpServletRequest request ,Employee employee);
    //查询
    R<AdminSelectEmployeeVo> selectEmployee(int page, int pageSize, String name);
    //修改
    R updateEmployee(HttpServletRequest request, Employee employee);
    //根据id查询
    R<AdminSelectEmployeeByIdVo> selectEmployeeById(Long id);
}
